﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp_client.Message
{
    class UIToServiceMessageRefreshTime:UIToServiceMessage
    {
    }

    public abstract class UIToServiceMessage : IUIMessage
    {
        /// <summary>
        /// 消息码
        /// </summary>
        public string MsgCode { get; set; }

        public UIToServiceMessage()
        {
            MsgCode = GetType().Name.Replace(nameof(UIToServiceMessage), string.Empty);
        }
    }

    public interface IUIMessage
    {
        /// <summary>
        /// 消息码
        /// </summary>
        string MsgCode { get; set; }
    }
}
